﻿@model LoginModel
@using SpotsHub.Gateway.Models.Customer;
@{
    Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
    ViewBag.Title = T("PageTitle.Login").Text;

    string url = null;
    if (!String.IsNullOrEmpty(this.Context.Request.QueryString["returnUrl"]))
    {
        url = this.Context.Request.QueryString["returnUrl"];
    }
}
<div class="login">
        @using (Html.BeginForm("Login", "Customer", new { area = "Logistics", returnurl = url }))
        {
            <div>
                @Html.ValidationSummary(false)
            </div>
            <div>
                @Html.LabelFor(m => m.Email)
                @Html.TextBoxFor(m => m.Email, new { autofocus = "autofocus" })
                @Html.ValidationMessageFor(m => m.Email)
            </div>
            <div>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <div>
                <input class="button-grey login-button" type="submit" value="@T("Account.Login.LoginButton")" />
            </div>
            <div class="login-remember">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>
        }
</div>
